package com.reizx.xocre.system.System;

import com.reizx.xocre.log.XCoreLogUtil;

import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;

/**
 * Hool使用：
 *      XposedHelpers.findAndHookMethod(Settings.System.class, "getString", ContentResolver.class, String.class, new Fuck_getString());
 * Created by admin on 2017/5/4.
 */

public class Fuck_getString extends XC_MethodHook {
    @Override
    protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
        super.beforeHookedMethod(param);
        XCoreLogUtil.log("before Settings.System.getString " + " the key : " + param.args[1]);
    }

    @Override
    protected void afterHookedMethod(MethodHookParam param) throws Throwable {
        super.afterHookedMethod(param);
        param.setResult("");
    }
}
